package com.hechi.demo.exception;

/**
 * 对APP运行过程中产生的正常的业务异常进行枚举
 */
public enum TijianExceptionEnum {
    DOCCODE_NOT_REGISTER(10001,"该医生编码尚未登记"),
    PASSWORD_IS_WRONG(10002,"密码错误,请重新输入"),
    SYSTEM_ERROR(10003,"系统错误"),
    DOCTOR_LOGIN_TIMEOUT(10004,"您的登录已超时");

    private Integer enCode;
    private String enMessage;

    TijianExceptionEnum(Integer enCode, String enMessage) {
        this.enCode = enCode;
        this.enMessage = enMessage;
    }

    TijianExceptionEnum() {

    }

    public Integer getEnCode() {
        return enCode;
    }

    public void setEnCode(Integer enCode) {
        this.enCode = enCode;
    }

    public String getEnMessage() {
        return enMessage;
    }

    public void setEnMessage(String enMessage) {
        this.enMessage = enMessage;
    }
}
